import { FormSchema } from '/@/components/Form';

export const schemas: FormSchema[] = [
  {
    field:'id',
    component:'Input',
    label:'任务编号',
    dynamicDisabled: (true),
  },
  {
    field:'jrid',
    component:'Input',
    label:'任务发起人',
    dynamicDisabled: (true),
  },
  {
    field: 'title',
    component: 'Input',
    label: '任务名称',
    componentProps: {
      placeholder: '给任务起个标题',
    },
    required: true,
  },
  {
    field: 'sketch',
    component: 'InputTextArea',
    label: '任务简述',
    componentProps: {
      placeholder: '请输入任务简述',
      rows: 2,
    },
    required: true,
  },
  {
    field: 'content',
    component: 'InputTextArea',
    label: '任务内容',
    componentProps: {
      placeholder: '请输入任务具体内容',
      rows: 4,
    },
    required: true,
  },
  {
    field: 'jsuser',
    component: 'Input',
    label: '任务分配人员',
    componentProps: {
      placeholder: '任务接收者多个用户请用英文逗号隔开',
    },
    required:true

  },
];


export const submit: FormSchema[] = [
  {
    field: 'title',
    component: 'Input',
    label: '任务名称',
    componentProps: {
      placeholder: '给任务起个标题',
    },
    dynamicDisabled: (true)
  },
  {
    field: 'sketch',
    component: 'InputTextArea',
    label: '任务简述',
    componentProps: {
      placeholder: '请输入任务简述',
      rows: 4,
    },
    dynamicDisabled: (true),
  },
  {
    field: 'content',
    component: 'InputTextArea',
    label: '任务内容',
    componentProps: {
      placeholder: '请输入任务具体内容',
      rows: 4,
    },
    dynamicDisabled: (true)
  },
  {
    field: 'submitcontent',
    component: 'InputTextArea',
    label: '任务提交内容',
    required:true,
    componentProps: {
      placeholder: '请输入任务简述',
      rows: 10,
    },
  },
];
